package ${basePackage};


import ${realPackage}.${className};

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
<#list importClasses as importClass>
import ${importClass};
</#list>

/**
* ${className}的测试类
*
* @author ${author!''}
* @date ${date}
*/
@RunWith(SpringJUnit4ClassRunner.class)
public class ${className}Test {
    @Autowired
    private ${className} ${className?uncap_first};

<#list methods as method>
    @Test
    public void test${method.methodName?cap_first}(){
         ${method.methodBody!''}
    }
</#list>

}